package geometry;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

public class GeomMatch {
	private Map<Geometry, Geometry> matchMap= new HashMap<Geometry, Geometry>(); //a mapping between a box in geomToFind with the corresponding box in geomToSearch
	private Transform transformation;
	
	public String toString() {
	    String s = "\nBOX MATCHES -------------------";
	    
	    for (Entry<Geometry, Geometry> entry : matchMap.entrySet()) {
	        s=s.concat("\nBOX ON LHS ");
	        s=s.concat(entry.getKey().toString() + " ");
	        s=s.concat("\nBOX IN DESIGN MATCHED");
	        s=s.concat(entry.getValue().toString() + " ");
	    }
	    return s;
	}

    public Transform getTransformation() {
        return this.transformation;
    }

    public void setTransform(Transform transform) {
        this.transformation = transform;
    }

    public void put(Geometry lhsGeometry, Geometry designGeometry) {
        matchMap.put(lhsGeometry, designGeometry);
    }
}
